package main

import (
	"./cardutil"
	"bufio"
	"fmt"
	"os"
)

// sif by id
// https://card.niconi.co.ni/cardApi/1747
// js getSifCardInfoById.js

// mltd
// https://api.matsurihi.me/mltd/v1/cards
// js getMltdCardInfo.js

// sif by page
// https://schoolido.lu/api/cards/?page_size=100&page=1
// getSifCardInfoByPage.js

func main() {

	fmt.Println("请输入文件夹地址：")

	scanner := bufio.NewReader(os.Stdin)
	pathByte, _, _ := scanner.ReadLine()
	pathString := string(pathByte)

	cardutil.ReplaceCardNameByText(pathString+"/card/", pathString+"/name.txt", "~~~", nil, nil, nil)

}
